{# An action's confirmation (dialog body). The button calls the JSON API; ``data-api-done`` is the toast app.js shows when it succeeds, after which it closes the dialog and re-requests the section. Without ``done`` the action's own response says what happens next (a page that is gone cannot be re-requested). #} {% from "components/macros/layout.html" import confirm %} {# A block, so each value is escaped once, inside quotes that stay quotes. #} {% set attrs %}data-write{% if done is defined %} data-api-done="{{ done }}"{% endif %}{% endset %} {{ confirm(title, body, url, label, method, attrs=attrs, tone=tone|default("danger")) }}